package com.honghu.paylibrary

import android.app.Application
import android.app.FragmentManager
import com.honghu.paylibrary.bean.WebPayBean
import com.honghu.paylibrary.interfaces.PayEnd

/**
 * 创建日期 2021/4/19
 * 描述：
 */
object PayUtils {
    @JvmStatic
    fun init(application: Application?, baseUrl: String?) {
        PayApplication.initHttp(application, baseUrl)
    }
    @JvmStatic
    fun init(application: Application?) {
        init(application, null)
    }

    @JvmStatic
    fun show(fragmentManager: FragmentManager?, webPayBean: WebPayBean?, payEnd: PayEnd?) {
        PayDialogFragment()
                .setWebPayBean(webPayBean)
                .setPayEnd(payEnd)
                .show(fragmentManager, "PayDialogFragment")
    }
}